/**
 * File: com.mytaobao.exception ApplicationException.java
 * User: z3y2
 * Date: 2010-12-4
 * Time: 下午09:02:21
 * Right: (c) z3y2 All Rights Reserved
 */
package com.mypack.exception;


/**
 * 
 * 应用程序异常
 * 
 * @author Administrator
 *
 */
public class ApplicationException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	/** 异常码 */
	private String code;
	
	/** 异常信息 */
	private String message;
	
	public ApplicationException() {
		super();
	}
	
	public ApplicationException(String code, String message) {
		super(code + " --> " + message);
		this.code = code;
		this.message = message;
	}

	public ApplicationException(String message, Throwable cause) {
		super(message, cause);
	}

	public ApplicationException(String message) {
		super(message);
	}

	public ApplicationException(Throwable cause) {
		super(cause);
	}

	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
	
}
